import path from 'path'
import { defineConfig } from 'vite'

const absPath = (relativePath) => path.resolve(__dirname, relativePath)
export default defineConfig({
  resolve: {
    alias: {
      '@': absPath('./src'),
    },
  },
  build: {
    minify: false,
  },
  esbuild: {
    jsxFactory: 'renderJsx',
    jsxFragment: 'Fragment',
    jsxInject: `import {renderJsx} from '@/core/react'`,
  },
})
